package com.jsj.service;

import com.jsj.dao.LabelDao;
import com.jsj.dao.NumberDao;
import com.jsj.domain.Label;
import com.jsj.domain.Number;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NumberService {
    private NumberDao numberDao;

    @Autowired
    public void setNumberDao(NumberDao numberDao) {
        this.numberDao = numberDao;
    }
    public Integer insert(Number number) {
        return numberDao.insert(number);
    }
    public Number queryById(int problemId) {
        return numberDao.queryById(problemId);
    }
}
